/*
 * @Author: your name
 * @Date: 2021-08-30 14:13:59
 * @LastEditTime: 2021-08-31 21:38:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day06\7-this.js
 */


// var a = 100;
// var name = 'zs';

// function fn() {
// var age = 17;
// console.log(this.name);
// var sayName = function() {
//     console.log('局部变量');
//     console.log(this.name);
// }
//     console.log(a); //100
//     console.log(this.name); //undefined
//     console.log(name); //zs
// }
// fn();

var age = 100;

function a() {
    var age = 100;
    console.log(age, this.age); //100 undefined

}
a();